package com.hooper.dp.constant;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2023/02/25/14:17
 */
public class UserConstant {
    /**
     * 用户信息存储Key
     */
    public static final String USER_INFO_CACHE = "hmdp:user:user_info:";

    /**
     * 验证码过期时间 单位：分钟
     */
    public static final int CODE_TTL = 1;

    /**
     * 验证码缓存key前缀
     */
    public static final String USER_CODE_KEY_PREFIX = "hmdp:user:code:";

    /**
     * token过期时间
     */
    public static final int TOKEN_TTL = 30;

    /**
     * 用户购买秒杀券 key前缀
     */
    public static final String USER_BOUGHT= "hmdp:user:buy";
    /**
     * 购买状态：已购买
     */

    public static final String STATE_BOUGHT = "Y";
}
